<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>changepassword.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
  
  
 function checkblank(f)
{
   a=f.op.value
   b=f.np.value
   c=f.cp.value
   
   if((a.length==0) || (b.length==0) || (c.length==0))
  {
      alert("pls fill all d fields")
      if(a.length==0)
      {
         document.getElementById("lop").innerHTML="<font color=red>Enter old password</font>"
      }
      if(b.length==0)
      {
         document.getElementById("lnp").innerHTML="<font color=red>Enter new password</font>"
      }
      if(c.length==0)
      {
         document.getElementById("lcp").innerHTML="<font color=red>Enter password</font>"
      }
      return false;
  }
  else
      {
         if(b!=c)
         {
           alert("New Password and confirm password do not match")
           return false
         }
  }
  } 
   </script>

  <link href="css/style1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="pink">
<div class="main-out">
<div class="main">
<div class="page">
<div class="top">
<div class="header">
<div class="header-top">
<%@include file="TopHead.jsp" %>
</div>
<div class="topmenu">
<%@include file="TopMenu.jsp" %>
</div>
<div class="">
<img src="images/d3.gif">
</div>
</div>
<div class="content">
<div class="content-left">
<div class="row1">
<div class="img">&nbsp;</div>
<div class="welcome">
<h1 class="title">Welcome to POlice Sewa<span></span></h1>
<p>




</p>

<html:form action="changedcppwd" onsubmit="return checkblank(this)">
   <div align="center">
	<table border="0" width="60%">
		<%
		 Object ob1=request.getAttribute("UI");
       
     
		
		if(ob1!=null)
		
		{
		String uis=ob1.toString() ; 
		
		
		%>
		
		<tr>
			
			<td><html:hidden property="ud" value="<%=ob1.toString()%>"></html:hidden></td>
			<td><label id="lop"></label></td>
		</tr>
		
		<tr>
			<td>Old Password</td>
			<td><html:password property="op"></html:password></td>
			<td><label id="lop"></label></td>
		</tr>
		<tr>
			<td>New Password</td>
			<td><html:password property="np"></html:password></td>
			<td><label id="lnp"></label></td>
		</tr>
		<tr>
			<td>Confirm Password</td>
			<td><html:password property="cp"></html:password></td>
			<td><label id="lcp"></label></td>
		</tr>
		
		<tr>
			<td colspan="2"><html:submit property="changedcppwd" value="CHANGEDCPPASSWORD"></html:submit> </td>
		</tr>
		
		<%} %>
		<% Object ob=request.getAttribute("ccc"); 
		if(ob!=null)
		{
		  %>
		  <tr><td><%=ob.toString() %></td></tr>
		<%} %>
		
		
	
	</table>
</div>
   
</html:form>


</div>
</div>

</div>
<div class="content-right">
<%@include file="SideMenu.jsp" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</div>
<div class="bottom">
<!--DO NOT Remove The Footer Links-->
<p><%@include file="Footer.jsp"  %><br>
<!--DO NOT Remove The Footer Links-->
</p>
</div>
</div>
</div>
</div>
</body>
</html:html>
